package com.github.elliot.mallcenter.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.elliot.mallcenter.entity.ItemMall;
import com.github.elliot.mallcenter.mapper.ItemMallMapper;
import com.github.elliot.mallcenter.service.ItemMallService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 商城表 服务实现类
 * </p>
 *
 * @author mybatis-plus-generator
 * @since 2025-11-18
 */
@Service
public class ItemMallServiceImpl extends ServiceImpl<ItemMallMapper, ItemMall> implements ItemMallService {

    @Autowired
    private ItemMallMapper itemMallMapper;

    @Override
    public ItemMall getByItemMallNo(String itemMallNo) {
        QueryWrapper<ItemMall> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq(ItemMall.MALL_NO, itemMallNo);
        return itemMallMapper.selectOne(queryWrapper);
    }
}
